class Dog(object):
    def __init__(self, name):
        self.name = name

    def game(self):
        print("%s cute %s" % self.name)


class Bigdog(Dog):
    def game(self):
        print("%s eat lots of food" % self.name)


class Person(object):
    def __init__(self, name):
        self.name = name

    def game_with_dog(self, dog):
        print("%s play with %s" % (self.name, dog.name))
        dog.game()


# wangcai = Dog("狗")
wangcai = Bigdog("big dog")

xiaoming = Person("小明")
xiaoming.game_with_dog(wangcai)



